<?php namespace sacvoyage;

require_once("sacvoyage/storage/Gateway.php");
use \sacvoyage\storage\Gateway;

require_once("sacvoyage/storage/Storage.php");
use \sacvoyage\storage\Storage;

require_once("sacvoyage/domain/Domain.php");
use \sacvoyage\domain\Domain;


// init and run
$site=new Domain(new Storage(new Gateway(
	$CONFIG['DB']['HOST'],
	$CONFIG['DB']['NAME'],
	$CONFIG['DB']['USER'],
	$CONFIG['DB']['PASSWORD']
)));
$domain->service($path);

?>